package Records;

public record StudentRecord ( Long studentId,
                              String studentName,
                              int studentAge){

    public StudentRecord{
        System.out.println("构造函数");
    }

    public static void main(String[] args) {
        StudentRecord record = new StudentRecord(1L, "姜承録", 25);
        System.out.println(record);
        System.out.println(record.studentId);
    }
}
